package org.zfes.snowier.zbss.xzy.router.device.members;

import java.util.List;
import java.util.Map;

import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import org.zfes.snowier.auth.shiro.util.SecurityUtil;
import org.zfes.snowier.web.controller.BaseController;
import org.zfes.snowier.zbss.xzy.member.MemberDto;
import org.zfes.snowier.zbss.xzy.member.MemberRegistDto;

import com.google.common.collect.Lists;

import io.swagger.annotations.ApiOperation;

@Controller("org.zfes.snowier.zbss.xzy.router.device.members.MemberController") 
@RequestMapping("/api/device/member")
public class MemberController  implements BaseController{

	  
		
	    @ApiOperation(value = "设备所在家庭成员列表加载")
		@RequestMapping(value="/loadMembers/{deviceNum}", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
		public  @ResponseBody Object loadMembers(@PathVariable("deviceNum")String deviceNum) {
		  
		  Long tenantId =  SecurityUtil.getTenantId();
		  
		  List<MemberDto> memberList=Lists.newArrayList();
			 
		  return ajaxDoneSuccess("数据操作成功 ").put("memberList", memberList);
		}
		
		
		
}
